home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / vol_400 / 429_01 / chess12 / brdsize.hpp < prev    next >
C/C++ Source or Header  |  1994-05-02  |  320b  |  20 lines

  1. #if !defined(BRDSIZE_HPP)
  2. #define BRDSIZE_HPP
  3.  
  4. // dimensions of chess board
  5. const int NUMROWS = 8;
  6. const int NUMCOLS = 8;
  7.  
  8.  
  9. // position on the chess board
  10. class POSITION
  11.   {
  12.   public:
  13.     int row, col; // zero-based
  14.  
  15.     POSITION(void) { }
  16.     POSITION(int r, int c) : row(r), col(c) { }
  17.   };
  18.  
  19. #endif
  20.